package com.pz.art.service;


import com.pz.art.domain.AssoEvents;
import com.ruoyi.common.core.domain.AjaxResult;

import java.util.List;
import java.util.Map;


public interface EventsService {
    /**
     * 查询活动
     *
     * @param id 活动主键
     * @return 活动
     */
    public AssoEvents selectAssoEventsById(Long id);

    /**
     * 查询活动列表
     *
     * @param assoEvents 活动
     * @return 活动集合
     */
    public List<AssoEvents> selectAssoEventsList(AssoEvents assoEvents);

    /**
     * 查询所有可参与的活动列表
     *
     * @param assoEvents 活动
     * @return 活动集合
     */
    public List<AssoEvents> selectApplyAssoEventsList(AssoEvents assoEvents,Long unit_id);

    /**
     * 新增活动
     *
     * @param assoEvents 活动
     * @return 结果
     */
    public int insertAssoEvents(AssoEvents assoEvents);

    /**
     * 修改活动
     *
     * @return 结果
     */
    public AjaxResult updateAssoEvents(Long events_id);

    /**
     * 批量删除活动
     *
     * @param ids 需要删除的活动主键集合
     * @return 结果
     */
    public int deleteAssoEventsByIds(Long[] ids);

    /**
     * 删除活动信息
     *
     * @param id 活动主键
     * @return 结果
     */
    public int deleteAssoEventsById(Long id);

    public List<AssoEvents> getEventsByUnitId(Long unit_id);

    public int addunitevents(AssoEvents assoEvents, Long unit_id);

    List<AssoEvents> selectApplyStatusAssoEventsList(AssoEvents assoEvents);

    int examineevents(AssoEvents assoEvents);

    int addonAssortments(Map<String,String>  eventsIds);
}
